//package com.mmtech.edb.data.config;
//
//import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
//import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
//import lombok.Data;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * Created by IntelliJ IDEA.
// *
// * @author luoliang
// * @date 2018/4/9
// **/
//@Configuration
//@Data
//@ConfigurationProperties(prefix = "elasticjob")
//@ConditionalOnExpression("'${regCenter.serverLists}'.length() > 0")
//public class ElasticJobConfig {
//
//    private String serverLists;
//    private String namespace;
//
//    @Bean
//    public ZookeeperConfiguration zkConfig() {
//        return new ZookeeperConfiguration(serverLists, namespace);
//    }
//
//    @Bean(initMethod = "init")
//    public ZookeeperRegistryCenter regCenter(ZookeeperConfiguration config) {
//        return new ZookeeperRegistryCenter(config);
//    }
//}